/**
 * 
 */
package com.sf.osms.dep.groovy

import com.sf.osms.dep.domain.Router
import java.util.List
import java.util.Map
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * @author sfhq1405
 *
 */
public class TestGroovy implements GroovyInterface{
	
	private static Logger logger = LoggerFactory.getLogger("testGroovy");
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#hanleCorrectRoutersList(java.util.List)
	 */
	public void hanleCorrectRoutersList(List list){
		logger.info("来了")
		Router r = new Router();
		r.sfWaybill = "22222";
		list.add(r);
		list.remove(0);
		list.remove(1);
		logger.info("sdfsdsfsdf");
		
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleOrginalRouter(java.util.Map)
	 */
	public void handleSimgleOrginalRouter(Map map){
		map["1"] = "大蛇发的顺丰";
		map["2"] = "水电费";
	}
	
	/* (non-Javadoc)
	 * @see com.sf.osms.dep.groovy.GroovyInterface#handleSimgleRouter(com.sf.osms.dep.domain.Router)
	 */
	public void handleSimgleRouter(Router router){
		router.barTime = new Date();
		router.barDate = new Date();
	}
	
}
